var app=angular.module("myApp",["ui.router"]);

app.config(function($stateProvider,$urlRouterProvider){
    $stateProvider.state("shouye",{
        url:"/shouye",
        templateUrl:"html/shouye.html"
        /*controller:"shouye"*/
    })
        .state("shouye.jptj",{
        url:"/jptj",
        templateUrl:"html/jptj.html"
       /* controller:"shouye.jptj"*/
    }).state("shouye.scgl",{
        url:"/scgl",
        templateUrl:"html/scgl.html"
    })
        .state("fenlei",{
        url:"/fenlei",
        templateUrl:"html/fenlei.html"
    }).state("wo",{
        url:"/wo",
        templateUrl:"html/wo.html"
    })
        .state("wo.xhsc",{
        url:"/xhsc",
        templateUrl:"html/xhsc.html"
    }).state("wo.xhgl",{
        url:"/xhgl",
        templateUrl:"html/xhgl.html"
    })


    $urlRouterProvider.otherwise("/shouye/jptj")

})



app.controller("Aaa",function($scope){


$(".footer>li").click(function(){
    $(".footer>li").removeClass("footer-color");
    $(this).addClass("footer-color")
})

    console.log($(".div3").text())


})
